package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.biz.Duty;
import com.sihai.ehr.model.sys.Organization;

import java.util.List;

/**
 * @author wxn
 * @since 12-6-6 17:49
 * 职务Service
 */
public interface DutyService {

    Duty get(Long id);

    //带路径的查找(部门一/部门二/职务)
    List<Duty> searchWithPath(Long organizationId, Limit limit, Sorter sorter);

    List<Duty> search(Long organizationId, Limit limit, Sorter sorter);

    List<Duty> searchDuty(Long organizationId, Limit limit, Sorter sorter);

    LimitedList<Duty> search(Duty duty, Limit limit, Sorter sorter);

    void save(Duty duty);

    void remove(String dutyIds);

    LimitedList<Duty> findForRole(Long organizationId, Limit limit, Sorter sorter)throws Exception;
}
